home *** CD-ROM | disk | FTP | other *** search
/ Know Your Baseball - The Greatest Player Resource / Know Your Baseball - Greatest Player.iso / Baseball / Director / KTGCST.CST / 00089_Script_loadAudioMedia < prev    next >
Text File  |  1998-09-21  |  3KB  |  65 lines

  1. Global AnnSnd,CoachSnd,gbuttonstate
  2.  
  3. on loadAudioMedia x
  4.   puppetsound 0
  5.   set markerName = the name of member (the membernum of sprite x) &"_AUDIO"
  6.   if markerName = "SHOW_AUDIO" then exit
  7.   set start = the number of member markername 
  8.   set AnnSnd = the name of member (start+1) of castlib "internal"
  9.   set CoachSnd = the name of member (start+2) of castlib "internal"
  10.   set the membernum of sprite 41 = the membernum of sprite 41+1
  11.   set the blend of sprite 41 = 100
  12.   setat(gbuttonState,41,2)
  13.   -- remove the next lines after all the sound is in
  14.   -- this line bails if no sound files are present
  15.   if AnnSnd = EMPTY or voidp(AnnSnd) then exit
  16.   puppetsound CoachSnd
  17.   updatestage
  18. end
  19. on loadAudioMediaTeam x
  20.   puppetsound 0
  21.   case the framelabel of
  22.     "1D","2A":
  23.       set markerName = the name of member (the membernum of sprite x) of castlib "teamplya.cst" &"_AUDIO"
  24.       set start = the number of member markername 
  25.       set AnnSnd = the name of member (start+1) of castlib "teamplya.cst"
  26.       set CoachSnd = the name of member (start+2) of castlib "teamplya.cst"
  27.     "3D","4A":
  28.       set markerName = the name of member (the membernum of sprite x) &"_AUDIO"
  29.       set start = the number of member markername 
  30.       set AnnSnd = the name of member (start+1) of castlib "internal"
  31.       set CoachSnd = the name of member (start+2) of castlib "internal"
  32.     "5D","6A":
  33.       set markerName = the name of member (the membernum of sprite x) of castlib "teamplyc.cst" &"_AUDIO"
  34.       set start = the number of member markername 
  35.       set AnnSnd = the name of member (start+1) of castlib "teamplyc.cst"
  36.       set CoachSnd = the name of member (start+2) of castlib "teamplyc.cst"
  37.   end case
  38.   
  39.   set the membernum of sprite 41 = the membernum of sprite 41+1
  40.   set the blend of sprite 41 = 100
  41.   setat(gbuttonState,41,2)
  42.   -- remove the next lines after all the sound is in
  43.   -- this line bails if no sound files are present
  44.   if AnnSnd = EMPTY or voidp(AnnSnd) then exit
  45.   puppetsound CoachSnd
  46.   updatestage
  47. end
  48.  
  49. global gclipout,gstory
  50. on loadAudioMediaBTG x
  51.   puppetsound 0
  52.   set markerName = the name of member (the membernum of sprite x) &"_AUDIO"
  53.   if markerName = "SHOW_AUDIO" then exit
  54.   set start = the number of member markername 
  55.   set AnnSnd = the name of member (start+1) of castlib "internal"
  56.    set gstory = the name of member (start+2) of castlib "internal"
  57.   -- remove the next lines after all the sound is in
  58.   -- this line bails if no sound files are present
  59.   if AnnSnd = EMPTY or voidp(AnnSnd) then exit
  60.   
  61.   puppetsprite 48,1
  62.   set the membernum of sprite 48 = the number of member gstory
  63.   set  gClipOut = (the duration of member  gstory)-30 -- sets the end point for the script videoplayer
  64.   updatestage
  65. end